package org.csc.sss.admin;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@ComponentScan("org.csc.sss")
@EnableTransactionManagement
@EnableJpaAuditing
public class AdminAppplication extends SpringBootServletInitializer{


	public static void main(String[] args) {
		ApplicationContext ctx = new SpringApplicationBuilder(AdminAppplication.class).web(true).run(args);
		log.info("【admin项目启动成功......】");
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(AdminAppplication.class);
	}

}




